package com.cal.utms.action.payment;

import com.cal.utms.dto.payment.SummaryDetailDto;
import com.cal.utms.model.payment.RedemptionModel;
import com.opensymphony.xwork2.Action;
import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

public class SummaryDetailAction extends ActionSupport implements ModelDriven<SummaryDetailDto> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private SummaryDetailDto detailDto = new SummaryDetailDto();
	private RedemptionModel model = new RedemptionModel();

	private int customer_id;
	private int invest_fund_id;

	public String getSummaryDetails() {
		detailDto.setDetailDtos(model.getSummaryDetails(customer_id, invest_fund_id));
		return Action.SUCCESS;
	}

	@Override
	public SummaryDetailDto getModel() {
		return detailDto;
	}

	public SummaryDetailDto getDetailDto() {
		return detailDto;
	}

	public void setDetailDto(SummaryDetailDto detailDto) {
		this.detailDto = detailDto;
	}

	public int getCustomer_id() {
		return customer_id;
	}

	public void setCustomer_id(int customer_id) {
		this.customer_id = customer_id;
	}

	public int getInvest_fund_id() {
		return invest_fund_id;
	}

	public void setInvest_fund_id(int invest_fund_id) {
		this.invest_fund_id = invest_fund_id;
	}

}
